﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'userFindAll')
	BEGIN
		DROP  Procedure  userFindAll
	END
GO


-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[userFindAll]
	-- Add the parameters for the stored procedure here
	@app_id INT
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	SELECT *
	FROM lit_usuario
	WHERE lit_aplicacion_id = @app_id
	ORDER BY lit_usuario_username;;
END
GO